<?PHP

	class tpl_pwreq {
		
		public static function pwreq(){
			return	tpl_globals::header() .
				tpl_globals::global_styles_shared() .
				tpl_globals::inner_global_styles() .
				tpl_globals::form_styles() .
				<<<EOV
<script language='javascript' type='text/javascript'>
	function enterPw(){
		pw = document.getElementById('inobpwenter').value;
		if(pw){
			window.parent.tabs[window.parent.activeTab].destroy();
			window.parent.addTab({$GLOBALS['OUTPUT']->room},1,'{$GLOBALS['OUTPUT']->roomname}',pw);
		}
	}
</script>

<div class='table_header'>&nbsp;{$GLOBALS['LANG']->lang_roommgmt->password_req}</div>
	<table style='width: 100%;' cellspacing='1' cellpadding='5'>
		<tr>
			<td class='td2'>
				{$GLOBALS['LANG']->lang_roommgmt->room_pass}
			</td>
			<td class='td2'>
EOV
.
				tpl_form::text_password_file('password','pwenter') .
				<<<EOV
			</td>
		</tr>
		<tr>
			<td colspan='2' style='text-align: center;' class='table_header_row'>
				<input type='button' value='{$GLOBALS['LANG']->lang_formcommon->submit}' onclick='enterPw()' class='form_button_norm' onmouseout="this.className='form_button_norm'" onmouseover="this.className='form_button_over'">
				<input type='button' onclick="window.parent.tabs[window.parent.activeTab].destroy();" value='{$GLOBALS['LANG']->lang_roommgmt->cancel}' class='form_button_norm' onmouseout="this.className='form_button_norm'" onmouseover="this.className='form_button_over'">
			</td>
		</tr>
	</table>
EOV
.
				tpl_globals::footer();
		}
		
	}

?>